import request from '@/utils/request'

export function fetchGoodList(params) {
    return request({ url: '/vant/getGoodList', method: 'GET', params })
}

export function fetchAllCate(params) {
    return request({ url: '/vant/getAllCate', method: 'GET', params })
}
export function fetchRegist(data) {
    return request({ url: '/vant/regist', method: 'POST', data })
}
export function fetchLogin(data) {
    return request({ url: '/vant/login', method: 'POST', data })
}

export default {
    fetchGoodList,
    fetchAllCate,
    fetchLogin,
    fetchRegist
}